/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Listas;

/**
 *
 * @author COEV
 */
public class Lista {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        ListaSimple lista1;
        lista1=new ListaSimple(1);
        NodoSimple val2=new NodoSimple(2, null);
        NodoSimple val3=new NodoSimple(3, null);
        lista1.InsertarFinal(val2);
        lista1.InsertarFinal(val3); 
        
        ListaSimple lista2 = null;
        lista1=new ListaSimple(2);
        NodoSimple val4=new NodoSimple(4, null);
        NodoSimple val5=new NodoSimple(5, null);
        lista2.InsertarFinal(val2);
        lista2.InsertarFinal(val3); 
        System.out.println(lista2.ImprimirValores());
    }

}
